/**
 * A Marker is a little pin on the map, that marks a specific location.
 * This overlay is customizable. It is possible to add a custom icon
 * and a text that will be displayed in a popup when clicking on the marker.
 * 
 * @author Kim Pommert
 * @version %I%, %G%
 */
qx.Class.define("qooxdoosample.cocktail.util.overlays.Marker",
{
	extend: qooxdoosample.cocktail.util.overlays.Overlay,
	
	/**
	 * Class constructor.
	 * Instantiates an object of that class.
	 * 
	 * @param position	{qooxdoosample.cocktail.util.LatLng} The geographic location the pin will be set
	 */
	construct: function(position)
	{
		this.setPosition(position);
	},
	
	properties :
	{
    	/**
    	 * The geographic location the marker is set to.
    	 */
    	position:
    	{
      		nullable: true,
      		init: null,
      		check: "qooxdoosample.cocktail.util.LatLng"
      	},
      	
      	/**
      	 * Draggable makers can be moved on the map with drag and drop.
      	 * To enable that function, set this flag to <code>true</code>.
      	 */
      	draggable:
      	{
      		nullable: false,
      		init: false,
      		check: "Boolean"
      	},
      	
      	/**
		 * A Marker can have a customized icon that will be displayed on the map.
		 */
      	customIcon:
      	{
      		nullable: true,
      		init: null,
      		check: "qooxdoosample.cocktail.util.Icon"
      	},
      	
      	/**
		 * By clicking on the marker, an info popup will be displayed.
		 * The text in that popup can be customized. It can also contain valid HTML code.
      	 */
      	infoText:
      	{
      		nullable: true,
      		init: null,
      		check: "String"
      	}
	}
});